<?php
/**
 * The Template for displaying all single posts.
 *
 * @package Argo
 */

get_header(); ?>

<div class="section">
	<div id="blog-content" class="container">
	<div class="hero">
		<h1><?php _e('The Team', ''); ?></h1>
	</div>
	<div class="row">
		<div class="span8">
		<?php while ( have_posts() ) : the_post(); ?>
		<h2><?php the_title(); ?></h2>
		<?php $id = get_the_ID(); ?>
		<?php the_content(); ?>
		<?php endwhile; // end of the loop. ?>
		</div>
		<div class="span4">
			<div class="xtestimonial xsidebar">
				<h3 class="xtitle"><?php _e('OTHER NEWS', 'argo'); ?></h3>
				<div class="xlistnews">
				<?php
				$args = array('posts_per_page' => -1,
				  'post_type'            => 'post',
				  'post__not_in'   => array($id),
				);
				$the_query = new WP_Query( $args );
				if($the_query->have_posts()) :
					while ( $the_query->have_posts() ) : $the_query->the_post();
						$id = get_the_ID();
						$data = get_post_meta($id);
						?>
						<div class="item">
						<h4><?php the_title(); ?></h4>
						<p><?php the_excerpt(); ?></p>
						<a href="<?php the_permalink(); ?>"><?php _e('Read more', 'argo'); ?></a>
						</div>
						<?php
					endwhile;
				endif;
				?>
				</div>
			<div class="more-new">Click to see more</div>		
		</div>		
		
		</div>
	</div>
</div>

<?php get_footer(); ?>